package org.qfedu.framwork.service;

/**
 * @author xiaobobo
 * @title: NetworkService
 * @projectName CD-Java-FY-2401-Springboot-Parent
 * @description: 这个类就是咋们模拟的一个框架
 * @date 2024/9/10  9:22
 */
public class NetworkService {

    //ip地址
    private String host;

    //端口
    private Integer port;

    public NetworkService(String host, Integer port) {
        this.host = host;
        this.port = port;
    }

    /**
     * 打印ip地址和端口的方法
     */
    public void print() {
        System.out.println("ip地址是：" + this.host + "---端口是:" + this.port);
    }

}
